package com.mzj.saas.mservice.department.repository;

import com.mzj.saas.mservice.department.entity.CustomFieldValue;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface CustomFieldValueRepository extends PagingAndSortingRepository<CustomFieldValue, Long>, JpaSpecificationExecutor<CustomFieldValue>, JpaRepository<CustomFieldValue, Long> {
    List<CustomFieldValue> findByUserId(String userId);

    List<CustomFieldValue> findByFieldId(Long fieldId);

    CustomFieldValue findByUserIdAndFieldId(String userId, Long fieldId);
}
